<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/commons/jsp-head.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>缘来-登录/注册</title>
<%@include file="/commons/html-head-easyui.jsp"%>
<script type="text/javascript">
	
	function authSubmitForm(id)
	{
		$("#"+id).submit();
	}
	
	function clearForm(id){  
        $('#'+id).form('clear');  
    }  

</script>
</head>
<body>
	<table style="margin:auto;overflow: hidden">
		<tr>
			<td>
				
				
				<div class="easyui-panel" title="登录" style="width: 350px;height:250px">
					<div style="padding: 10px 0 10px 60px">
						<form id="auth_login" method="post" action="/auth/login.action">
							<table>
								<tr>
									<td>名字中文拼音:</td>
									<td><input class="easyui-validatebox" type="text" name="pinyin" data-options="required:true"></input>
									</td>
								</tr>
								
								<tr>
									<td>密码:</td>
									<td><input class="easyui-validatebox" type="text" name="password" data-options="required:true"></input>
									</td>
								</tr>	
							</table>
						</form>
					</div>
					<div style="text-align: center; padding: 5px">
						<a href="javascript:void(0)" class="easyui-linkbutton"
							onclick="authSubmitForm('auth_login')">登录</a> <a href="javascript:void(0)"
							class="easyui-linkbutton" onclick="clearForm('auth_login')">Clear</a>
					</div>
				</div>
				</td>
			<td>
				<div class="easyui-panel" title="注册" style="width:350px;height:250px">
					<div style="padding: 10px 0 10px 60px">
						<form id="auth_register" method="post" action="/auth/register.action">
							<table>
								<tr>
									<td>名字中文拼音:</td>
									<td><input class="easyui-validatebox" type="text" name="pinyin" data-options="required:true"></input>
									</td>
								</tr>
								<tr>
									<td>名字:</td>
									<td><input class="easyui-validatebox" type="text" name="name" data-options="required:true"></input>
									</td>
								</tr>
								<tr>
									<td>邮箱:</td>
									<td><input class="easyui-validatebox" type="text" name="email" data-options="required:true,validType:'email'"></input>
									</td>
								</tr>
								<tr>
									<td>手机:</td>
									<td><input class="easyui-validatebox" type="text" name="phone" data-options="required:true"></input>
									</td>
								</tr>
								<tr>
									<td>密码:</td>
									<td><input class="easyui-validatebox" type="text" name="password" data-options="required:true"></input>
									</td>
								</tr>
								<tr>
									<td>重复输入密码:</td>
									<td><input class="easyui-validatebox" type="text" name="rePassword" data-options="required:true"></input>
									</td>
								</tr>
							
							</table>
						</form>
					</div>
					<div style="text-align: center; padding: 5px">
						<a href="javascript:void(0)" class="easyui-linkbutton"
							onclick="authSubmitForm('auth_register')">注册</a> <a href="javascript:void(0)"
							class="easyui-linkbutton" onclick="clearForm('auth_register')">Clear</a>
					</div>
				</div>
			</td>
		</tr>

	</table>
	

</body>
</html>
